Overview

Follow these instructions to access the Programming Assignments on GitLab.

By default you should have access to these repositories:

We will try to setup MP2 as an example, but keep in mind that the procedure is the same for MP1 and MP3:

1. Click on Fork.

2. Click on your username.

3. After forking the project, you should have MP2 on your personal projects.

5. Go to "Account settings"

6. Click on “ Access and Tokens ”.

7. Add GITLAB_API_TOKEN as the name for the token and select “Read user information”. Press the button Create Personal Access Token.

8. Copy the token, we will need this for the next steps.

9.From the project settings go to CI/CD Pipelines

10. Add a variable with name GITLAB_API_TOKEN and the value the personal access token copied at step 11. Click on Add new variable.

11. Add a variable with name COMPETITION_ALIAS and the username you would be displayed in the leaderboard results. Click on Add new variable.

You are all set!

Every time you edit a python script, you can see the test running by clicking Pipelines. Once finished, it will tell you whether your code passed the tests (Succeeded) or not (Failed).

Below is an example of a failed test, where you can read the error like you would on command line:

And an example of a passed test:

May all your tests be passed! Have fun!